package com.kelan.android.app.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kelan.android.app.config.DSEnum;
import com.kelan.android.app.config.DataSource;
import com.kelan.android.app.entity.AreaEntity;
import com.kelan.android.app.mapper.AreaMapper;

@Service
public class AreaServiceImpl implements AreaService {

	@Autowired
	private AreaMapper areaMapper;
	
	@Override
	@DataSource(name = DSEnum.DATA_SOURCE_TH)
	public AreaEntity selectAreaById(String regOrg) {
		return areaMapper.selectAreaById(regOrg);
	}

}
